﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Core;
using UnityEngine.InputSystem;

public class DebugFeature : Feature
{
    public override void OnInit()
    {
        AddSystem<DebugSystem>();
    }
}

public class DebugSystem : EntitySystem, IUpdate
{
    public void Update()
    {
        if (Keyboard.current.f9Key.wasPressedThisFrame)
            Reporter.Show();

        if (Keyboard.current.f10Key.wasPressedThisFrame)
        {
            var helper = GetHelper<IAssetCounterHelper>();
            ((AssetCounterHelper)helper).DebugCounterInfo();
        }    
    }
}
